<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: src/libs/fileext/csv/csv.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('csv_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">csv.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="csv_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;../fileext.hpp&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacecsv.html">csv</a> {</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classcsv_1_1_csv.html">   29</a></span>&#160;<span class="keyword">class </span><a class="code" href="classcsv_1_1_csv.html">Csv</a>: <span class="keyword">public</span> <a class="code" href="classfileext_1_1_file_extension.html">fileext::FileExtension</a> {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <a class="code" href="classcsv_1_1_csv.html#afddf18c4e3290202e8937d6ae6447788">Csv</a>(<span class="keyword">const</span> std::string&amp; fileName, <span class="keyword">const</span> <span class="keywordtype">char</span>&amp; delimiter = <span class="charliteral">&#39;,&#39;</span>,</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>&amp; newline = <span class="charliteral">&#39;\n&#39;</span>, <span class="keyword">const</span> <span class="keywordtype">char</span>&amp; quote = <span class="charliteral">&#39;&quot;&#39;</span>);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classcsv_1_1_csv.html#a608154dce54d51cf185db5d36429d459">~Csv</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcsv_1_1_csv.html#ab1862c4dea375ea35fb8aaa051b722d7">convert</a>(<span class="keywordtype">bool</span> addStyle = <span class="keyword">true</span>, <span class="keywordtype">bool</span> extractImages = <span class="keyword">false</span>, <span class="keywordtype">char</span> mergingMode = 0) <span class="keyword">override</span>;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classcsv_1_1_csv.html#af82957d0736688be4e7ae98f798758b9">detectDelimiter</a>(std::ifstream&amp; file);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    std::string <a class="code" href="classcsv_1_1_csv.html#a5b99c3545c300b173c1e2a6c91b375a7">clearCell</a>(std::string&amp; cell) <span class="keyword">const</span>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classcsv_1_1_csv.html#ae5dc7051ce2e2aa480eca57bf075ee80">   83</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="classcsv_1_1_csv.html#ae5dc7051ce2e2aa480eca57bf075ee80">m_delimiter</a>;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classcsv_1_1_csv.html#af89fa8c34dd857f8af201cedeb4b65d3">   85</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="classcsv_1_1_csv.html#af89fa8c34dd857f8af201cedeb4b65d3">m_newline</a>;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classcsv_1_1_csv.html#aad30e3f2df09aa1a5510ea9da52cc8fe">   87</a></span>&#160;    <span class="keywordtype">char</span> <a class="code" href="classcsv_1_1_csv.html#aad30e3f2df09aa1a5510ea9da52cc8fe">m_quote</a>;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;};</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;}  <span class="comment">// End namespace</span></div><div class="ttc" id="classcsv_1_1_csv_html"><div class="ttname"><a href="classcsv_1_1_csv.html">csv::Csv</a></div><div class="ttdoc">CSV files into HTML сonverter. </div><div class="ttdef"><b>Definition:</b> csv.hpp:29</div></div>
<div class="ttc" id="classcsv_1_1_csv_html_af89fa8c34dd857f8af201cedeb4b65d3"><div class="ttname"><a href="classcsv_1_1_csv.html#af89fa8c34dd857f8af201cedeb4b65d3">csv::Csv::m_newline</a></div><div class="ttdeci">char m_newline</div><div class="ttdef"><b>Definition:</b> csv.hpp:85</div></div>
<div class="ttc" id="classcsv_1_1_csv_html_a5b99c3545c300b173c1e2a6c91b375a7"><div class="ttname"><a href="classcsv_1_1_csv.html#a5b99c3545c300b173c1e2a6c91b375a7">csv::Csv::clearCell</a></div><div class="ttdeci">std::string clearCell(std::string &amp;cell) const</div><div class="ttdoc">Clear cell. </div><div class="ttdef"><b>Definition:</b> csv.cpp:132</div></div>
<div class="ttc" id="classfileext_1_1_file_extension_html"><div class="ttname"><a href="classfileext_1_1_file_extension.html">fileext::FileExtension</a></div><div class="ttdoc">Base class for file extensions converters. </div><div class="ttdef"><b>Definition:</b> fileext.hpp:32</div></div>
<div class="ttc" id="classcsv_1_1_csv_html_ae5dc7051ce2e2aa480eca57bf075ee80"><div class="ttname"><a href="classcsv_1_1_csv.html#ae5dc7051ce2e2aa480eca57bf075ee80">csv::Csv::m_delimiter</a></div><div class="ttdeci">char m_delimiter</div><div class="ttdef"><b>Definition:</b> csv.hpp:83</div></div>
<div class="ttc" id="classcsv_1_1_csv_html_a608154dce54d51cf185db5d36429d459"><div class="ttname"><a href="classcsv_1_1_csv.html#a608154dce54d51cf185db5d36429d459">csv::Csv::~Csv</a></div><div class="ttdeci">virtual ~Csv()=default</div></div>
<div class="ttc" id="classcsv_1_1_csv_html_af82957d0736688be4e7ae98f798758b9"><div class="ttname"><a href="classcsv_1_1_csv.html#af82957d0736688be4e7ae98f798758b9">csv::Csv::detectDelimiter</a></div><div class="ttdeci">void detectDelimiter(std::ifstream &amp;file)</div><div class="ttdoc">Automatically detect delimiter. </div><div class="ttdef"><b>Definition:</b> csv.cpp:66</div></div>
<div class="ttc" id="classcsv_1_1_csv_html_afddf18c4e3290202e8937d6ae6447788"><div class="ttname"><a href="classcsv_1_1_csv.html#afddf18c4e3290202e8937d6ae6447788">csv::Csv::Csv</a></div><div class="ttdeci">Csv(const std::string &amp;fileName, const char &amp;delimiter=',', const char &amp;newline='\n', const char &amp;quote='&quot;')</div><div class="ttdef"><b>Definition:</b> csv.cpp:24</div></div>
<div class="ttc" id="classcsv_1_1_csv_html_aad30e3f2df09aa1a5510ea9da52cc8fe"><div class="ttname"><a href="classcsv_1_1_csv.html#aad30e3f2df09aa1a5510ea9da52cc8fe">csv::Csv::m_quote</a></div><div class="ttdeci">char m_quote</div><div class="ttdef"><b>Definition:</b> csv.hpp:87</div></div>
<div class="ttc" id="namespacecsv_html"><div class="ttname"><a href="namespacecsv.html">csv</a></div><div class="ttdoc">CSV files into HTML сonverter. </div></div>
<div class="ttc" id="classcsv_1_1_csv_html_ab1862c4dea375ea35fb8aaa051b722d7"><div class="ttname"><a href="classcsv_1_1_csv.html#ab1862c4dea375ea35fb8aaa051b722d7">csv::Csv::convert</a></div><div class="ttdeci">void convert(bool addStyle=true, bool extractImages=false, char mergingMode=0) override</div><div class="ttdoc">Convert file to HTML-tree. </div><div class="ttdef"><b>Definition:</b> csv.cpp:27</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_87a455bccb09a92130c26a11a880c98a.html">libs</a></li><li class="navelem"><a class="el" href="dir_ffbcd8de0e3a98e11beaf3347bc22514.html">fileext</a></li><li class="navelem"><a class="el" href="dir_7c1a713977ebf545423a72d7f2271039.html">csv</a></li><li class="navelem"><a class="el" href="csv_8hpp.html">csv.hpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
